//
//  Person.m
//  runTime
//
//  Created by SmartStrategy on 2020/4/9.
//  Copyright © 2020 SmartStrategy. All rights reserved.
//

#import "Person.h"
#import "YangYang.h"

@interface Person ()

@property (nonatomic,strong)YangYang *yang;

@end

@implementation Person



- (instancetype)init
{
    self = [super init];
    if (self) {
        [self createYangYang];
    }
    return self;
}

- (void)createYangYang{
    YangYang *yang = [[YangYang alloc] init];
    self.yang = yang;
    yang.name = @"myYang";
}

- (void)getName{
    NSLog(@"%@",self.yang.name);
}

@end
